package org.szy.plugin.gen.entity;

import com.mybatisflex.annotation.Table;
import org.szy.core.common.entity.BaseEntity;
import org.szy.core.common.listener.BaseInsertListener;
import org.szy.core.common.listener.BaseUpdateListener;

/**
 * 生成基础 实体类。
 *
 * @author sunzhiyang
 * @since 2023-06-14
 */
@Table(value = "gen_basic", onInsert = BaseInsertListener.class, onUpdate = BaseUpdateListener.class)
public class GenBasic extends BaseEntity {

    /**
     * 主表
     */
    private String dbTable;

    /**
     * 主表主键
     */
    private String dbTableKey;

    /**
     * 移除表前缀
     */
    private Integer tablePrefix;

    /**
     * 生成方式
     */
    private Integer generateType;

    /**
     * 功能名
     */
    private String functionName;

    /**
     * 业务名
     */
    private String busName;

    /**
     * 类名
     */
    private String className;

    /**
     * 包名
     */
    private String packageName;

    /**
     * 作者
     */
    private String authorName;

    /**
     * 排序
     */
    private Integer sortCode;

    public String getDbTable() {
        return dbTable;
    }

    public void setDbTable(String dbTable) {
        this.dbTable = dbTable;
    }

    public String getDbTableKey() {
        return dbTableKey;
    }

    public void setDbTableKey(String dbTableKey) {
        this.dbTableKey = dbTableKey;
    }

    public Integer getTablePrefix() {
        return tablePrefix;
    }

    public void setTablePrefix(Integer tablePrefix) {
        this.tablePrefix = tablePrefix;
    }

    public Integer getGenerateType() {
        return generateType;
    }

    public void setGenerateType(Integer generateType) {
        this.generateType = generateType;
    }

    public String getFunctionName() {
        return functionName;
    }

    public void setFunctionName(String functionName) {
        this.functionName = functionName;
    }

    public String getBusName() {
        return busName;
    }

    public void setBusName(String busName) {
        this.busName = busName;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public String getAuthorName() {
        return authorName;
    }

    public void setAuthorName(String authorName) {
        this.authorName = authorName;
    }

    public Integer getSortCode() {
        return sortCode;
    }

    public void setSortCode(Integer sortCode) {
        this.sortCode = sortCode;
    }
}
